package link.singlyLinkedList;

/**
 * @author czt
 * @version 1.0
 * @since 2024/12/10
 */
public class SinglyLinkedListTest {

    public static void main(String[] args) {

        SinglyLinkedList singlyLinkedList = new SinglyLinkedList();

        for (int i = 5; i > 0; i--) {
            singlyLinkedList.addFirst(i);
        }

        singlyLinkedList.add(0, 8);
        int value = singlyLinkedList.getValue(0);

        System.out.println("value = " + value);
    }
}
